package top.api.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum WxPayStatusEnum {
    // 支付状态(未付款: 0,已付款: 1 已退款: 2)
    UNPAID(0,"未付款"),
    PAID(1,"已付款"),
    REFUNDED(2,"已退款");

    @EnumValue
    @JsonValue
    private final int code;

    private final String status;

    WxPayStatusEnum(int code, String status) {
        this.code = code;
        this.status = status;
    }

    public int getCode() {
        return code;
    }

    public String getStatus() {
        return status;
    }
}
